package exception;

public class ThrowsDemo {
    public static void main(String[] args) {

        Student zs = new Student();
        try{
            zs.setAge(100);
        }catch(IllegalAccessException e ){
            e.printStackTrace();
        }
        System.out.println("此人年龄"+zs.getAge()+"岁了");
    }
}
